#pragma once
#include <windows.h>

unsigned short CheckSum(char *buf, unsigned long len);

DWORD CheckSum2(char *buf, unsigned long len);

int Scramble(unsigned long skey, char *sdata, void *data, unsigned long len);

void GenerateKey( LONGLONG llBase, DWORD dwKey, DWORD dwProductId, char* szReturn );

int InfoToText(char *szKey, DWORD dwKey, DWORD productID, char *buf);